package com.pingan.springboot_es_api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.frameworkset.orm.annotation.Column;
import com.frameworkset.orm.annotation.ESParentId;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Kay on 2018/11/15
 * 检验信息，子表，与父表用party_id 关联
 */
public class Checkup implements Serializable {
    private static final long  serialVersionUID = 1L;
    @ESParentId
    private String party_id;   // 当事人编号，与父表basic关联

    private String hospital;   // 就诊医院
    private String subject;   // 就诊科室
    private String label;      // 检验项目
    private String valuenum;  // 检验值
    private String valueuom;  // 检验值单位
    private String range;    // 检验值范围
    private Integer age;      //  已经不使用
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(dataformat = "yyyy-MM-dd HH:mm:ss")
    private Date created_date;          // 检验日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(dataformat = "yyyy-MM-dd HH:mm:ss")
    private Date last_modified_date;          //最后修改日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(dataformat = "yyyy-MM-dd HH:mm:ss")
    private Date etl_dt;                      //etl时间戳

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getParty_id() {
        return party_id;
    }

    public void setParty_id(String party_id) {
        this.party_id = party_id;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getValuenum() {
        return valuenum;
    }

    public void setValuenum(String valuenum) {
        this.valuenum = valuenum;
    }

    public String getValueuom() {
        return valueuom;
    }

    public void setValueuom(String valueuom) {
        this.valueuom = valueuom;
    }

    public String getRange() {
        return range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    public Date getCreated_date() {
        return created_date;
    }

    public void setCreated_date(Date created_date) {
        this.created_date = created_date;
    }

    public Date getLast_modified_date() {
        return last_modified_date;
    }

    public void setLast_modified_date(Date last_modified_date) {
        this.last_modified_date = last_modified_date;
    }

    public Date getEtl_dt() {
        return etl_dt;
    }

    public void setEtl_dt(Date etl_dt) {
        this.etl_dt = etl_dt;
    }

    public Checkup() {
    }


    @Override
    public String toString() {
        return "Checkup{" +
                "party_id='" + party_id + '\'' +
                ", hospital='" + hospital + '\'' +
                ", subject='" + subject + '\'' +
                ", label='" + label + '\'' +
                ", valuenum='" + valuenum + '\'' +
                ", valueuom='" + valueuom + '\'' +
                ", range='" + range + '\'' +
                ", created_date=" + created_date +
                ", last_modified_date=" + last_modified_date +
                ", etl_dt=" + etl_dt +
                '}';
    }
}
